#include <iostream>
using namespace std;

void swap (int& x,int& y) {
    int temp = x;
    x = y;
    y = temp;
}

void swap(double& x,double& y) {
    double temp = x;
    x = y;
    y = temp;
}

int main() {
    int a,b;
    cin >> a >> b;
    cout << "Before swap: x=" << a << ",y=" << b << endl;
    swap(a,b);
    cout << "After swap:x=" << a << ",y=" << b << endl;
    return 0;
}